package com.rui.responsibility.model.base;

import com.rui.responsibility.obj.User;

/**
 * @Description: handler抽象类
 * @Author: ZhangRui
 * @Date: 2023/3/3 14:49
 * @Version: 1.0
 */
public abstract class BaseHandler {

    protected BaseHandler next;

    /**
     * 返回handler方便链式操作
     *
     * @param null
     * @return
     * @author ZhangRui
     * @date 2023/3/3 14:54
     */
    public void next(BaseHandler next) {
        this.next = next;
    }

    /**
     * 流程开始的方法
     *
     * @param null
     * @return
     * @author ZhangRui
     * @date 2023/3/3 14:54
     */
    public abstract void doHandler(User user);

}
